package week10;

public class DVDRack {
    public static void main(String[] args) {
        DVDList rack = new DVDList();

        rack.add(new DVD("A", "ZQC", 1223, 78, true));
        rack.add(new DVD("B", "WWB", 1723, 56, false));
        rack.add(new DVD("C", "TCM", 1888, 23, true));

        DVD sa = new DVD("D", "KHY", 1999, 100, false);
        rack.add(sa);
        rack.insert(2, sa);

        System.out.println(rack);

        rack.Sort();
        rack.delete(sa);

        System.out.println(rack);

    }
}